package org.mnswf.scorchedearth.events {
	
	import flash.events.Event;
	import org.mnswf.scorchedearth.messages.StartGameMessage;
	
	/**
	 * @author Danny Patterson
	 */
	public class StartGameEvent extends Event {
		
		public static const START_GAME:String = "startGame";
		
		[Bindable]
		public var startGameMessage:StartGameMessage;
		
		/**
		 * @param type (String)
		 * @param startGameMessage (StartGameMessage)
		 * @param bubbles (Boolean) [optional]
		 * @param cancelable (Boolean) [optional]
		 */
		public function StartGameEvent(type:String, startGameMessage:StartGameMessage, bubbles:Boolean=false, cancelable:Boolean=false) {
			super(type, bubbles, cancelable);
			this.startGameMessage = startGameMessage;
		}
		
		/**
		 * @see flash.events.Event#clone
		 */
		public override function clone():Event {
			return new StartGameEvent(type, startGameMessage, bubbles, cancelable);
		}
		
	}
	
}